package entity

import "time"

type Admin struct {
	ID        int       `gorm:"column:id;PRIMARY_KEY"`
	RoleId    int       `gorm:"column:role_id"`
	UserNo    string    `gorm:"column:user_no"`
	Name      string    `gorm:"column:user_name"`
	Gender    string    `gorm:"column:gender"`
	Avatar    string    `gorm:"column:avatar"`
	Password  string    `gorm:"column:password"`
	Mobile    string    `gorm:"column:mobile"`
	State     int       `gorm:"column:state"`
	Remark    string    `gorm:"column:remark"`
	CreatedAt time.Time `gorm:"column:created_at"`
	UpdatedAt time.Time `gorm:"column:updated_at"`
}

func (Admin) TableName() string {
	return "l_admin"
}
